<?php
declare (strict_types = 1);

namespace app\wechat\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * 微信小程序码
 *
 * @Author tanruizheng
 * @DateTime 2021-07-09
 */
class MiniCodeModel extends Model
{
    //表名
    protected $name = 'wechat_mini_code';
    //时间戳
    protected $autoWriteTimestamp = true;

    //软删除
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;

    const CODE_TYPE_LIMIT = 'limit';
    const CODE_TYPE_UNLIMIT = 'unlimit';
}
